<?php
  
      error_reporting(E_ALL);
    ini_set('max_execution_time', 300);
  
  require "../snapol/framework.php";   
    
  datastructure::importDatastructure("/install/db/domain_modus.txt");  
  datastructure::importDatastructure("/install/db/app.txt");
       
  $modul = new modul();
  $modul->installModul("/install/modul/Cms.zip", "app", "/code/app");   
  
  $compile = new compile();


  $compile->compileFile("/snapol/template/admin.html", "/code/template/admin.php", true);
  $compile->compileFile("/data/$domain/template/index.html", "/code/$domain/template/index.php", true);
  

  
  
  
  
  //$code = new code();
  //$code->compileTemplate();
  //$code->compileFile("/snapol/template/admin.html", "/code/template/admin.php", true);
  
/*  global $debugModus;
  $debugModus = true;
  
  $timer = new timer("compile");
  //$code->compileFile("/modul/Cms/content/Datenbank.html", "/code/template/admin.php", false);
  //$code->compileFile("/tmp/start.html", "/tmp/start.php", false);
  $compile = new compile();
  $compile->modus = "file";
  $compile->compileFile("/tmp/start.html", "/tmp/start.php");
  
  
  $timer->stopTimer();  */
  
  
  

?>